package mr.ali.video.web.service.impl;

import mr.ali.video.web.model.CollectionYurt;
import mr.ali.video.web.mapper.CollectionYurtMapper;
import mr.ali.video.web.service.ICollectionYurtService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Mr-ali
 * @since 2025-08-03
 */
@Service
public class CollectionYurtServiceImpl extends ServiceImpl<CollectionYurtMapper, CollectionYurt> implements ICollectionYurtService {
    /**
     * 使用 MyBatis 获取所有的 yurt 数据
     * @return 所有的 CollectionYurt 对象列表
     */
    @Override
    public List<CollectionYurt> getAllYurtData() {
        QueryWrapper<CollectionYurt> queryWrapper = new QueryWrapper<>();
        return baseMapper.selectList(queryWrapper);
    }
}
